
from reward_component import RewardComponent;

class ComplianceRewardComponent(RewardComponent):
    """路径合规性奖励组件"""
    def calculate(self, current_activity, next_activity, case_events, context=None):
        return 1.0 if is_valid_transition(current_activity, next_activity) else -1.0
    
    def get_description(self):
        return "评估活动转换是否符合流程规范"